<script>
	export default {
		onLaunch: function() {
			// console.log('App Launch')
		},
		onShow: function(options) {
      const sceneList = [1047, 1049, 1048]
			console.log(options, 'apponShow');
			// console.log('App Show')
      if(sceneList.findIndex(v => v == options.scene) == -1) {
        if(!uni.getStorageSync('token') || uni.getStorageSync('token') == '') {
          console.log('login');
          uni.reLaunch({
            url: '/pages/index/isLoginIndex'
          })
        }
      }
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
view,
scroll-view {
  box-sizing: border-box;
}
.page {
  width: 100%;
  height: 100%;
  background: #F4F7F6;
}
</style>
